package fr.mma.scrumm.factory;

import java.util.ArrayList;
import java.util.Collection;

import fr.mma.scrumm.dto.Dto;

public abstract class AbstactFactory <DTO extends Dto,METIER> {
	
	public abstract DTO build(METIER metier);

	public  Collection<DTO> build(Collection<METIER> sprints) {
		Collection<DTO> sprintsDto = new ArrayList<DTO>();
		for (METIER sprint : sprints) {
			sprintsDto.add(build(sprint));
		}
		return sprintsDto;
	}
}
